<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-bind绑定其他属性的</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <a href="https://www.baidu.com">百度一下</a> <hr />
    <a v-bind:href="link">百度一下</a>
    <a :href="link">百度一下</a>

</div>
<script>
    new Vue({
        el: "#app",
        data: {
            link: "https://www.baidu.com"
        }
    });
</script>
</body>
</html>